class Foo:
    name = 'tqq'
    age = '18'

    def fly(self):
        names = self.name
        print(type(self))
        print('fly100%')
        pass


f = Foo();
print(type(f))
f.fly()
print(type(Foo()))

print('-----------------------')


class Test(object):
    name = '类属性'

    def __init__(self,name,age):  #构造函数
        self.name = '实例属性'
        self.age = age

print(Test.name)
t = Test('tqq','18')
print(t.age)

